home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / v cisle / diff / diffcmdu_bundle.exe / {app} / ExtTools / ImageViewer / ImageViewer.hta next >
Text File  |  2007-01-08  |  1KB  |  64 lines

  1. <html>
  2.     <head>
  3.         <title>Image Viewer - Diff Commander</title>
  4.     </head>
  5.     <HTA:APPLICATION ID="IV" 
  6.         APPLICATIONNAME="Diff Commander - Image Viewer" 
  7.         ICON="ImageViewer.ico"
  8.         WINDOWSTATE="normal">
  9.  
  10.     <script language="javascript" src="scripts.js"></script>
  11.  
  12. <script>
  13.  
  14. bLeftLoaded= false;
  15. bRightLoaded= false;
  16.  
  17. lp= "";
  18. rp= "";
  19.  
  20. // parse command line params
  21. var Pathes= getCmdParam(IV.commandLine);
  22.  
  23. for (var i=0; i<Pathes.length && i<2; i++)
  24. {
  25.     if (i == 0)
  26.     {
  27.         lp= Pathes[0];
  28.     }
  29.     if (i == 1)
  30.     {
  31.         rp= Pathes[1];
  32.     }
  33. }
  34.  
  35. function LoadLeft()
  36. {
  37.     if (bLeftLoaded == false)
  38.     {
  39.         sLocation = "paneleft.htm?LeftImg=";
  40.         sLocation += lp;
  41.         window.frames("leftpane").document.location= sLocation;
  42.         bLeftLoaded= true;
  43.     }
  44. }
  45. function LoadRight()
  46. {
  47.     if (bRightLoaded == false)
  48.     {
  49.         sLocation = "paneright.htm?RightImg=";
  50.         sLocation += rp;
  51.         window.frames("rightpane").document.location= sLocation;
  52.         bRightLoaded= true;
  53.     }
  54. }
  55.  
  56. </script>
  57.  
  58. <frameset onkeydown="CloseByEsc();" id="paneset" cols="100%,100%" frameborder="yes" framespacing="0">
  59.     <frame application="yes" id="leftpane" src="" name="leftpane" onload="LoadLeft();" scrolling="yes"/> 
  60.     <frame application="yes" id="rightpane" src="" name="rightpane" onload="LoadRight();" scrolling="yes"/> 
  61. </frameset>
  62.  
  63. </html> 
  64.